/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.staf.NetworkReportGenerator.V2;

import java.util.Set;

/**
 *
 * @author aezhov
 */
public class FakeFactory implements DeviceFactory {
    public LeafDevice getConcreteNode(String mac) {
        NmapOutputParser nmap = ConfigParser.nmap;
        Set<String> ips = nmap.getIpsForMac(mac);
        String ip = "";
        if (ips != null && ips.size() > 0)
            ip = ips.iterator().next();
        
        LeafDevice dev = new LeafDevice(mac, ip);
        dev.notice = "ТИП УЗЛА НЕ УСТАНОВЛЕН";
        return dev;
    }
}
